package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class Grantor {

    private int beginIndex;
    private int endIndex;
    private boolean currentUser;
    private boolean currentRole;

    public Grantor(int beginIndex, int endIndex, boolean currentUser, boolean currentRole) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.currentUser = currentUser;
        this.currentRole = currentRole;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isCurrentUser() {
        return currentUser;
    }

    public boolean isCurrentRole() {
        return currentRole;
    }

}
